package es.aa.android.cartomatic.appview;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import es.aa.android.cartomatic.R;
import es.aa.android.cartomatic.customview.mSimpleList;
import es.aa.android.cartomatic.interfaces.service.INavigationService;


public class DeckDetailView extends FragmentActivity {

	private Button addCard;
	private mSimpleList listCards;
	private INavigationService navService;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.deck_detail);
        
        init();
        
    }

	private void init() {
		addCard = (Button) findViewById(R.id.addCardToDeck);
		listCards = (mSimpleList) findViewById(R.id.deckCards);
		
		addCard.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				navService.navigate(DeckDetailView.this, CardsSelectionView.class);
			}
		});
	}
	
}
